package com.tanhua.dubbo.api;


import com.tanhua.model.enums.CommentType;
import com.tanhua.model.mongo.VideoComment;
import com.tanhua.model.mongo.VideoCommentLike;
import org.bson.types.ObjectId;

public interface VideoCommentApi {
    //判断用户是否已点赞该小视频
    Boolean hasComment(String videoId, Long userId, CommentType like);

    //保存用户点赞该小视频
    Integer save(VideoComment videoComment);

    //取消用户点赞该小视频
    Integer delete(VideoComment videoComment);

    //视频评论点赞
    Integer saveLikeComment(VideoCommentLike videoCommentLike);

    //视频评论取消点赞
    Integer deleteCommentLike(VideoCommentLike videoCommentLike);

    //判断用户是否点赞该条评论
    Boolean hasLikeComment(Long userId, String videoCommentId);

    //判断当前用户是否已点赞该条视频
    Boolean hasLike(Long userId, ObjectId commentId);

    //查询小视频评论数量
    Long commentCount(String id);
}
